\documentclass{article}
\usepackage{tikz,amsmath}
\usetikzlibrary{arrows.meta}
\usepackage[graphics,tightpage,active]{preview}
\PreviewEnvironment{tikzpicture}
\begin{document}
\begin{tikzpicture}[>=Stealth]
    \draw (0, 0) -- (3, 0);
    \fill (0, 0) circle[radius=2pt] node[above] {$O$};
    \fill (2, 0) circle[radius=2pt] node[above] {$A$};
\end{tikzpicture}
\end{document}
